package cn.liuhuan1.blogsModel.dao;

import cn.liuhuan1.webModelBean.bo.ArticleBo;
import cn.liuhuan1.webModelBean.vo.ArticleVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArticleDao {

    public List<ArticleVo> getArticle();

    List<ArticleVo> getPageArticle(ArticleBo articleBo);

    int getPageCount(ArticleBo articleBo);


    ArticleVo getArticleById(String id);

    void saveArticle(ArticleBo articleBo);

    void updateArticle(ArticleBo articleBo);

    void delArticle(String id);

    void updateStatus(@Param("status") String status, @Param("id") String id);

    List<ArticleVo> getInId(@Param("idList") List<String> idList);

    void updateViewNumber(@Param("id") String id);

    void updatePraiseSumber(@Param("id") String id);

    void updateReplyNumber(@Param("id") String id);
}
